package com.salt.admin.api.utils;

import com.salt.admin.api.feign.client.OfficeClient;
import com.salt.admin.api.model.Office;
import com.salt.common.utils.SpringContextHolder;

/**
 * @Description
 * @Author salt
 * @Date 2020/8/12 14:54
 * @Version 1.0
 */
public class OfficeClientUtils {

    private static OfficeClient officeClient = SpringContextHolder.getBean(OfficeClient.class);

    public static Office getByOfficeName(String name){
        return officeClient.getByOfficeName(name);
    }

}
